{__NOLAYOUT__}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>{$data.0.title.val}-{$seo_title}</title>
    <include file="Index:meta" />
</head>

<body>
    <i class="goTop"></i>
    <div id="page">
        <!-- header -->
        <include file="Index:header" />
        <!-- header end -->
        <section class="container pt-40 mb-20">
            <div class="details-head row">
                <div class="col-md-12 clearfix breadcrumb_box mb-40">
                    <ol class="breadcrumb">
                        <li>
                            <a href="index.php">
                                <i class="icon icon-home"></i> 首页</a>
                        </li>
                        <!-- <if condition="$state['type'] == 'gw'"> -->
                        <!-- 岗位 -->
                        <li>
                            <a href="index.php?m=Index&a=major&pid={$zy.0.id.val}">{$zy.0.title.val}</a>
                        </li>
                        <!-- </if> -->
                        <li class="active">{$data.0.title.val}</li>
                    </ol>
                </div>
                <div class="col-md-6 details-head-img mb-20">
                    <div class="row">
                        <img src="__PUBLIC__/dist/image/imgBig.jpg" data-big="http://hgedu.fjhgkj.com{$data.0.bannerimg.val}">
                    </div>
                </div>
                <div class="col-md-6 details-head-text mb-20">
                    <h1 class="pt-20 mb-40">
                        {$data.0.title.val}
                    </h1>
                    <div class="con-group">
                        <p class="con-title">{$data.0.description.attr.name|default='简介'}：</p>
                        <div>{$data.0.description.val}</div>
                    </div>
                    <div class="details-head-btn pt-10">
                        <a class="btn btn-primary" href="index.php?m=Index&a=major_details&{$state['type'] ==='zy'?'zid':'cid'}={$data.0.id.val}"
                            data-remote="index.php?m=Index&a=major_details&{$state['type'] ==='zy'?'zid':'cid'}={$data.0.id.val}"
                            data-toggle="modal" data-show-header="false" data-size="lg" data-height="auto">相关信息</a>
                            <!-- <if condition="$state['type'] == 'zy'">
                            <a class="btn btn-primary" <if condition="$type eq '1'"> href="index.php?m=Index&a=detailszyzy&pid={$pid}" target="_blank"<else />style="background-color:#999"</if>  >关联素材</a>
                            <!-- <a class="btn btn-primary" <if condition="$type eq '1'">href="index.php?m=Index&a=detailszyzy&pid={$pid}"<else />style="background-color:#666666"</if>  >相关资源</a> -->
                            <!-- </if> -->
                             <a  class="btn btn-primary" <if condition="$type eq '1'">href="index.php?m=Index&a=allmaterial&pid={$pid}"<else />style="background-color:#999"</if>>专业素材下载</a>
                    </div>
                </div>
            </div>
        </section>

        <section class="details-content container">
            <section class="row pt-20">
                <!-- <if condition="$state['type'] == 'zy'"> -->
                <include file="Index:major_gw" />
                <!-- <else/> -->
                <include file="Index:major_pro" />
                <!-- </if> -->
            </section>
        </section>

        <include file="Index:footer" />
    </div>

    <script>
        $(function(){
            var obj = $("[data-big]");
            var img = new Image();
            img.src = obj.data("big");
            img.onload = function () {
                obj.attr("src",obj.data("big"));
                var h = obj.width() / (640/360) + "px";
                obj.css("height",h)
            };
            img.onerror = function () {
                obj.src = "__PUBLIC__/dist/image/imgBig.jpg"
            }
        })
    </script>

</body>

</html>